package cn.app.service;

import java.util.Map;

import cn.app.entity.AppInfo;
import cn.app.utils.PageBean;

public interface AppInfoService {

	PageBean<AppInfo> findAppInfoByCondition(
			Map<String, Object> appInfoCondition);

	Integer findAppInfoByAPKName(String apkName);

	Integer saveAppInfo(AppInfo appInfo);

	AppInfo findAppInfoById(String id);

	Integer updateAppInfo(AppInfo appInfo);
	
	/**
	 * 根据app信息的id查询apkName字段.
	 * @param appid
	 * @return
	 */
	String findAPKNameById(Long appid);
	
	/**
	 * 修改指定app的versionid字段.
	 * @param appid
	 * @param id
	 */
	void updateVersionId(Long appid, Long id);

}
